package org.robot.scm.pojos.proxy;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class ProxyInfo {

    private String proxyIp;
    private int proxyPort;

    public ProxyInfo(String proxyIpPort) {
        String[] split = proxyIpPort.trim().split(":");
        this.proxyIp = split[0];
        this.proxyPort = Integer.parseInt(split[1]);
    }
}
